package io.kiki.stack.http.feign.moshi;

import com.squareup.moshi.Json;

public class VideoGame {

    @Json(name = "name")
    public final String name;

    @Json(name = "hero")
    public final Hero hero;

    public VideoGame(String name, String hero, String enemy) {
        this.name = name;
        this.hero = new Hero(hero, enemy);
    }

    static class Hero {
        @Json(name = "name")
        public final String name;

        @Json(name = "enemy")
        public final String enemyName;

        Hero(String name, String enemyName) {
            this.name = name;
            this.enemyName = enemyName;
        }
    }
}
